/*
 * #%L
 * SwiftUICommonUtilities
 * $Id:$
 * $HeadURL:$
 * %%
 * Copyright (C) 2011 - 2012 Linkwithweb
 * %%
 * This program is free software: you can redistribute it and/or modify
 * it under the terms of the GNU General Public License as
 * published by the Free Software Foundation, either version 3 of the 
 * License, or (at your option) any later version.
 * 
 * This program is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU General Public License for more details.
 * 
 * You should have received a copy of the GNU General Public 
 * License along with this program.  If not, see
 * <http://www.gnu.org/licenses/gpl-3.0.html>.
 * #L%
 */
/**
 * 
 */
package com.linkwithweb.products.swiftui.context;

import java.util.HashMap;
import java.util.Map;

import com.linkwithweb.products.swiftui.dataobject.FrameworkLOV;
import com.linkwithweb.products.swiftui.dataobject.FrameworkTextReport;

/**
 * @author ashwin kumar
 * 
 */
public class FrameworkMetaDataCache {
	private static FrameworkMetaDataCache metaData = new FrameworkMetaDataCache();

	private FrameworkMetaDataCache() {
	}

	public static FrameworkMetaDataCache getInstance() {
		return metaData;
	}

	private Map<String, FrameworkTextReport> reportCache = new HashMap<String, FrameworkTextReport>();
	private Map<String, FrameworkLOV> lovCache = new HashMap<String, FrameworkLOV>();

	/**
	 * @return the reportCache
	 */
	public Map<String, FrameworkTextReport> getReportCache() {
		return reportCache;
	}

	/**
	 * @param reportCache
	 *            the reportCache to set
	 */
	public void setReportCache(Map<String, FrameworkTextReport> reportCache) {
		this.reportCache = reportCache;
	}

	/**
	 * @return the lovCache
	 */
	public Map<String, FrameworkLOV> getLovCache() {
		return lovCache;
	}

	/**
	 * @param lovCache
	 *            the lovCache to set
	 */
	public void setLovCache(Map<String, FrameworkLOV> lovCache) {
		this.lovCache = lovCache;
	}
	
	
	/**
	 * @param id
	 * @param frameworkTextReport
	 */
	public void storeReport(String id,FrameworkTextReport frameworkTextReport){
		getReportCache().put(id,frameworkTextReport);
	}

}
